/*
* Copyright (c) 2014 by Casenet, LLC
*
* This file is protected by Federal Copyright Law, with all rights
* reserved. No part of this file may be reproduced, stored in a
* retrieval system, translated, transcribed, or transmitted, in any
* form, or by any means manual, electric, electronic, mechanical,
* electro-magnetic, chemical, optical, or otherwise, without prior
* explicit written permission from Casenet, LLC.
*/

package cz.semjobKB.knowledge.api;

import cz.semjobKB.conllx.api.ISentence;
import cz.semjobKB.search.impl.SearchMatch;

import java.util.List;

/**
 * Interface declares a method that converts the search results into knowledge representation
 */
public interface IGenerateKnowledgeResult {

    /**
     * Converts the search result into more appropriate knowledge representation that is used when operating with rdf DB.
     * @param searchResult Search result
     * @param sentences List of sentences of original text
     * @return Knowledge representation
     */
    public IExtractedKnowledge generateResult(List<SearchMatch> searchResult, List<ISentence> sentences);
}